package com.example.service;

import com.example.entity.dto.EmployeeDto;
import com.example.entity.po.Employee;
import com.example.entity.vo.EmployeeVo;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author hongyi
 * @date 2024/8/24 16:27
 */
public interface EmployeeService {
    /**
     * 新增
     */
    int insert(EmployeeDto employeeDto);

    /**
     * 删除
     */
    int deleteById(Integer id);

    /**
     * 修改
     */
    int updateById(EmployeeDto employeeDto);

    /**
     * 根据ID查询
     */
    Employee selectById(Integer id);

    /**
     * 查询所有
     */
    List<EmployeeVo> selectAll(Employee employee);

    PageInfo<EmployeeVo> selectPage(Employee employee, Integer pageNum, Integer pageSize);

    Employee selectByUsername(String name);

   public  void deleteBatch(List<Integer> ids);


}
